<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery.min.js"></script>
    <style>
        div {
            width: 100px;
            height: 200px;
            background-color: pink;
        }
    </style>
</head>

<body>
    <div></div>
  

    <script>
        // 1.$是jquery的别称
        // $(function () {
        //     $('div').hide()
        // })

        jQuery(function () {
            $('div').hide()
        })
        // 2.$同时也是jquery的顶级对象 相当于js中的window

    </script>
</body>

</html>